package
{
    import flash.display.Sprite;
    import flash.display.StageAlign;
    import flash.display.StageScaleMode;
    
    import org.hive.Hive;
    import org.hive.data.Settings;
    import org.hive.data.XMLDOM;
    import org.hive.examples.loading.states.Main;
    

    [SWF(backgroundColor=0xffffff, frameRate=30, width=900, height=680)]

    public class HIVE_Union_Demo extends Sprite
    {
        private var _settings:Settings;
        private var _model:XMLDOM;
        
        public function HIVE_Union_Demo()
        {
            super();
            
            stage.scaleMode = StageScaleMode.NO_SCALE;
            stage.align = StageAlign.TOP; //TODO: make stageLeft and other props relative to stage.align value.
            
            init();
        }
        
        private function init( ):void
        {
            var hive:Hive = new Hive(this);
            hive.start(new Main());
        }
    }
}